package cn.fch.gotrip.dao;

import cn.fch.gotrip.entity.HotelOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-25 19:35
 **/
@Repository
public interface HotelOrderDao {

    int creatHotelOrder(HotelOrder hotelOrder);

    int deleteOrder(@Param("id")String id);

    List<HotelOrder> queryByCreatAndType(@Param("type")Integer type,
                                         @Param("startTime")Date startTime,
                                         @Param("endTime")Date endTime);

    HotelOrder queryOrderById(@Param("id") String id);

    List<HotelOrder> searchOrderById(@Param("id") String id);
}
